package com.woniuxy.threadmethods;

import lombok.extern.slf4j.Slf4j;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: Class
 * <P> TODO:
 * <P> Date: 2022/4/6:18:54
 * <P> Description:
 */
@Slf4j(topic = "c.RunAndStart")
public class RunAndStart {
    public static void main(String[] args) {
        Thread t1 = new Thread("t1") {
            @Override
            public void run() {
                log.debug("running.." + Thread.currentThread().getName());
            }
        };
        log.debug(String.valueOf(t1.getState()));
        t1.start();
        log.debug(String.valueOf(t1.getState()));
    }
}
